package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.annotation.Excels;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 卷内目录对象 record_person
 *
 * @author admin
 * @date 2022-02-20
 */
public class RecordPerson extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    private Long personId;

    /**
     * 责任人
     */
    @Excel(name = "责任人")
    private String personName;

    /**
     * 身份证号
     */
    @Excel(name = "身份证号")
    private String idcard;

    /**
     * 题名ID
     */
    private Long archiveId;

    /**
     * 页数
     */
    @Excel(name = "页数")
    private String pageCount;

    /**
     * 文件号
     */
    @Excel(name = "文件号")
    private String fileNo;

    /**
     * 状态：0，在柜，1，借出
     */
    @Excel(name = "状态：0，在柜，1，借出")
    private String status;

    /**
     * 案卷对象信息
     */
    @Excels({
            @Excel(name = "题名", targetAttr = "archiveName", type = Excel.Type.EXPORT),
    })
    private RecordArchive archive;

    /**
     * 数据挂接信息
     */
    private List<RecordCatalogue> recordCatalogueList;

    /**
     * 档案类别ID，用于查询的vo字段
     */
    private Long typeId;

    public Long getTypeId() {
        return typeId;
    }

    public void setTypeId(Long typeId) {
        this.typeId = typeId;
    }

    public RecordArchive getArchive() {
        return archive;
    }

    public void setArchive(RecordArchive archive) {
        this.archive = archive;
    }

    public Long getPersonId() {
        return personId;
    }

    public void setPersonId(Long personId) {
        this.personId = personId;
    }

    public String getPersonName() {
        return personName;
    }

    public void setPersonName(String personName) {
        this.personName = personName;
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }

    public Long getArchiveId() {
        return archiveId;
    }

    public void setArchiveId(Long archiveId) {
        this.archiveId = archiveId;
    }

    public String getPageCount() {
        return pageCount;
    }

    public void setPageCount(String pageCount) {
        this.pageCount = pageCount;
    }

    public String getFileNo() {
        return fileNo;
    }

    public void setFileNo(String fileNo) {
        this.fileNo = fileNo;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public List<RecordCatalogue> getRecordCatalogueList() {
        return recordCatalogueList;
    }

    public void setRecordCatalogueList(List<RecordCatalogue> recordCatalogueList) {
        this.recordCatalogueList = recordCatalogueList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("personId", getPersonId())
                .append("personName", getPersonName())
                .append("idcard", getIdcard())
                .append("archiveName", getArchiveId())
                .append("pageNum", getPageCount())
                .append("fileNo", getFileNo())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .append("status", getStatus())
                .append("recordCatalogueList", getRecordCatalogueList())
                .append("archive", getArchive())
                .append("typeId", getTypeId())
                .toString();
    }
}
